"""
接口：namechange
描述：历史名称变更记录
"""

from app_config import get_engine, get_pro

engine = get_engine()


def get_data(ts_code):
    pro = get_pro()
    data = pro.namechange(ts_code=ts_code, fields='ts_code,name,start_date,end_date,change_reason')
    return data


if __name__ == '__main__':
    df = get_data('600848.SH')
    print(df)
